# coding: utf-8
"""
@python version : python3.10
@file name      : quickstart.py
@date           : 2024/5/13 15:22
@author         : ziyang.yang@aliyun.com
@gitee          : https://gitee.com/ziyangyang1318
@blog           : www.yangziyang.top
@describe       : 
"""
import uvicorn
from fastapi import FastAPI
from apps.app01.urls import shop_router
from apps.app02.urls import user_router

app = FastAPI()

app.include_router(shop_router, prefix='/shop', tags=['接口一:购物信息接口'])
app.include_router(user_router, prefix='/user', tags=['接口二:用户信息接口'])

# 启动 uvicorn.exe quickstart:app --reload

if __name__ == '__main__':
    file_name = __file__.split(".")[0].split('\\')[-1]
    uvicorn.run(f'{file_name}:app', port=8000, reload=True)
